﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WpfApp3.Views;

namespace WpfApp3.Services
{
    public class LoginService : ILoginService
    {
        public void ShowMainWindow()
        {
            var mainView = new MainView();
            mainView.Show();
        }

        public void CloseLoginWindow()
        {
            var loginWindow = Application.Current.Windows.OfType<LoginView>().FirstOrDefault();
            loginWindow?.Close();
        }
    }
}
